<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>Document</title>
	</head>
	<body>
		<script type="text/javascript" >
			function Vue(){
				this.p = 800
			}
			Vue.prototype.test = ()=>{alert(1)}

			Vue.extend = function(options){
				console.log('我对收到options进行了各种各样的使用')
				function VueComponent(){
					//一些复杂的代码
				}
				VueComponent.prototype = Object.create(Vue.prototype)
				VueComponent.prototype.constructor = VueComponent

				VueComponent.prototype.x = 900
				return VueComponent
			}

			const Weather = Vue.extend({})
			const A = Vue.extend({})
			const B = Vue.extend({})
			const C = Vue.extend({})
			const D = Vue.extend({})


			const w1 = new Weather();
			const a = new A() 
			const b = new B()
			const c = new C()
			const d = new D()
			
			console.log(w1)
			console.log(a)
			console.log(b)
			console.log(c)
			console.log(d)


		</script>
	</body>
</html>